				<div class="section">
                	<script type="text/javascript">
					function checkform(){
						var form = document.sac;
						if(form.train_name.value == ""){
							alert("Please enter name of train!");
							form.train_name.focus();
							return false;
						}else{
							return true;
						}
					}
					</script>
					<!--[if !IE]>start title wrapper<![endif]-->
					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Edit train</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<!--[if !IE]>end title wrapper<![endif]-->
					
					<!--[if !IE]>start section content<![endif]-->
					<div class="section_content">
						<span class="section_content_top"></span>
						
						<div class="section_content_inner">
                        	<div class="table_tabs_menu">
							<!--[if !IE]>start  tabs<![endif]-->
							<!--[if !IE]>end  tabs<![endif]-->

							</div>
				<!--[if !IE]>start table_wrapper<![endif]-->
							<div class="table_wrapper" style="background:none;">
								<div class="table_wrapper_inner">
                                	<div class="error_red"><?php if(isset($error)) { echo "<p>".$error."</p>"; } ?>
										<?php echo validation_errors();?>
									</div>
									<form action="<?php echo base_url();?>admin/trains/update/<?php echo $getdata['train_id']; ?>" method="post" name="sac" onsubmit="return checkform()" enctype="multipart/form-data">
                            		<div class="form_items">
                                    	<div class="form_items_left">Name of train</div>
                                        <div class="form_items_right"><input name="train_name" type="text" value="<?php echo $getdata['train_name']; ?>" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Code of train</div>
                                        <div class="form_items_right"><input name="train_code" type="text" value="<?php echo $getdata['train_code']; ?>" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Promotion</div>
                                        <div class="form_items_right">
                                        <input type="radio" value="1" <?php if($getdata['train_hot'] == 1){ echo "checked = 'checked'";} ?> name="train_hot" />Yes
                                        <input type="radio" value="0" <?php if($getdata['train_hot'] == 0){ echo "checked = 'checked'";} ?> name="train_hot" />No
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">Order train</div>
                                        <div class="form_items_right"><input name="train_order" type="text"  value="<?php echo $getdata['train_order']; ?>" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">SEO keywords</div>
                                        <div class="form_items_right">
                                            <textarea name="train_keys" cols="27" rows="5"><?php echo $getdata['train_keys']; ?></textarea>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">SEO Description</div>
                                        <div class="form_items_right">
                                            <textarea name="train_descrip" cols="27" rows="5"><?php echo $getdata['train_descrip']; ?></textarea>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">Short infomartion</div>
                                        <div class="form_items_right">
                                            <textarea name="train_info" cols="27" rows="5"><?php echo $getdata['train_info']; ?></textarea>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">Overview</div>
                                        <div class="form_items_right">
                                            <?php
                                            $fck = new FCKeditor('train_overview');
                                            $fck->BasePath = sBASEPATH;
                                            $fck->Value  = $getdata['train_overview'];
                                            $fck->Width  = '100%';
                                            $fck->Height = 400;
                                            $fck->Create();
                                            ?>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">Train amenities</div>
                                        <div class="form_items_right">
                                            <?php
                                            $fck = new FCKeditor('train_amenities');
                                            $fck->BasePath = sBASEPATH;
                                            $fck->Value  = $getdata['train_amenities'];
                                            $fck->Width  = '100%';
                                            $fck->Height = 400;
                                            $fck->Create();
                                            ?>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">Train schedule</div>
                                        <div class="form_items_right">
                                            <?php
                                            $fck = new FCKeditor('train_schedule');
                                            $fck->BasePath = sBASEPATH;
                                            $fck->Value  = $getdata['train_schedule'];
                                            $fck->Width  = '100%';
                                            $fck->Height = 400;
                                            $fck->Create();
                                            ?>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">Pros & Cons</div>
                                        <div class="form_items_right">
                                            <?php
                                            $fck = new FCKeditor('train_pros');
                                            $fck->BasePath = sBASEPATH;
                                            $fck->Value  = $getdata['train_pros'];
                                            $fck->Width  = '100%';
                                            $fck->Height = 400;
                                            $fck->Create();
                                            ?>
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">Image</div>
                                        <div class="form_items_right">
                                        <?php if($getdata['train_image'] != NULL){ ?>
                                        	<img src="<?php echo base_url()."uploads/trains/thumb/".$getdata['train_image']; ?>" width="160" />
                                        <?php } ?>
                                            <input name="image" type="file"  size="35" />
                                        </div>
                                    </div>
                                    <div class="form_items">
                                        <div class="form_items_left">Slide images</div>
                                        <div class="form_items_right">
                                            <input name="fullimg[]" multiple type="file"  size="35" />
                                        </div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_items_left">&nbsp;</div>
                                        <div class="form_items_right">
                                        	<input type="submit" name="ok" value="Edit train" class="magin"/>
                                            <input type="reset" name="Reset" id="button" value="Reset" class="magin"/>
                                        </div>
                                    </div>

                                	</form>
								</div>
							</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
						<span class="section_content_bottom"></span>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>